.all-videos-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  position: relative; 
  z-index: 1; 
}

.all-videos-container h1 {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
}

/* 分类按钮样式 */
.video-categories {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  justify-content: center;
}

.category-btn {
  padding: 8px 16px;
  background-color: #f0f0f0;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-btn.active {
  background-color: #007bff;
  color: white;
}

.category-btn:hover:not(.active) {
  background-color: #e0e0e0;
}

/* 视频网格布局 */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* 视频卡片样式 */
.video-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
}

/* 视频缩略图 */
.video-thumbnail {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-card:hover .thumbnail-img {
  transform: scale(1.05);
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-card:hover .play-icon {
  opacity: 1;
}

/* 视频信息 */
.video-info {
  padding: 16px;
}

.video-category {
  display: inline-block;
  padding: 4px 8px;
  background-color: #e9f5ff;
  color: #007bff;
  font-size: 12px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.video-title {
  font-size: 18px;
  margin: 0 0 8px 0;
  color: #333;
}

.video-description {
  font-size: 14px;
  color: #666;
  margin: 0 0 16px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 播放按钮 */
.watch-button {
  display: inline-block;
  padding: 8px 16px;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.watch-button:hover {
  background-color: #0056b3;
}

/* 加载状态 */
.video-loading {
  text-align: center;
  padding: 50px 0;
}

.spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 错误状态 */
.video-error {
  text-align: center;
  padding: 50px 0;
  color: #dc3545;
}

.video-error button {
  margin-top: 16px;
  padding: 8px 16px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* 无数据状态 */
.no-videos {
  text-align: center;
  padding: 50px 0;
  color: #666;
  z-index: 10;
  position: relative;
}
.home-bg {
  position: fixed ;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.home-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(18, 18, 18, 0.1);
}